package demo;

import java.util.Date;

/**
 * 建造者模式.
 *
 * @author GongXincheng
 * @since 2019-09-19 20:51
 */
public class Main {

    public static void main(String[] args) {

        Builder builder_1 = new ConcreteBuilder_1();
        Builder builder_2 = new ConcreteBuilder_2();

        Director.construct(builder_1);
        Product product = builder_1.getProduct();
        product.show();

        Director.construct(builder_2);
        Product product2 = builder_2.getProduct();
        product2.show();
    }

}
